package com.neutech.maplestory.entity;

import com.neutech.maplestory.client.MapleStoryClient;
import com.neutech.maplestory.util.ImageUtil;

import java.awt.*;

/**
 * ${陈虎}
 * 18:56
 * wp_maplestory_v1.0
 * ${"Do what you say,say what you do"}
 */

public class Ground  extends AbstractMapleStoryObject{
    public MapleStoryClient msc;
    public Image img;
    public Ground(){}
    public static Image[] imgs = new Image[1000];
    static {
        for (int i = 0; i < 21; i++) {
            imgs[i] = ImageUtil.getImage("earth" +i);
        }

        imgs[23] = ImageUtil.getImage("flower_2");
        imgs[24] = ImageUtil.getImage("flower_3");




    }
    public Ground(MapleStoryClient msc,int x,int y, String key){
        this.msc = msc;
        this.x = x;
        this.y = y;
        this.img = ImageUtil.getImage(key);
        this.width = img.getWidth(null);
        this.height = img.getHeight(null);

    }
    @Override
    public void draw(Graphics g) {
        g.drawImage(img,x,y,null);

    }
}
